package com.peanut.service;


import com.orm.mapper.IService;
import com.peanut.entity.ApiUrl;
import com.peanut.entity.JsonResult;
import com.peanut.entity.Role;
import com.peanut.entity.dto.PermissionVO;
import com.peanut.entity.vo.ApiUrlTreeVo;

import java.util.List;
import java.util.Map;

public interface RoleService extends IService<Role> {
	
	
	// 删除角色，直接返json ?
	JsonResult deleteRole(int roleId);
	
	
	// 返回权限vo
	PermissionVO queryPermission(int roleId);
	
	
	// 更新所有权限
	boolean updatePermission(PermissionVO permissionVO,	Map<Integer, List<String>> permissionsList);
	
	
	// 查询所有后台访问接口
	List<ApiUrlTreeVo> queryAllInterface();
}
